﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Summary description for Message
/// </summary>
/// 
namespace CE.User
{
    public class Message
    {
        private Int64 _messageid;
        private Int32 _usertypeid;
        private string _messagetype;
        private string _errorcode;
        private string _tittle;
        private string _header;
        private string _body;
        private string _footer;
        private bool _status;
        private Int64 _refceuserid;
        private DateTime _createddate;
        private DateTime _modifieddate;

        public Message()
        {
            //
            // TODO: Add constructor logic here
            //
            ClearFileds();
        }

        public Int64 MessageId
        {
            get { return _messageid; }
            set { _messageid = value; }
        }

        public Int32 UserTypeId
        {
            get { return _usertypeid; }
            set { _usertypeid = value; }
        }

        public string MessageType
        {
            get { return _messagetype; }
            set { _messagetype = value; }
        }

        public string ErrorCode
        {
            get { return _errorcode; }
            set { _errorcode = value; }
        }

        public string Tittle
        {
            get { return _tittle; }
            set { _tittle = value; }
        }

        public string Header
        {
            get { return _header; }
            set { _header = value; }
        }

        public string Body
        {
            get { return _body; }
            set { _body = value; }
        }

        public string Footer
        {
            get { return _footer; }
            set { _footer = value; }
        }

        public bool Status
        {
            get { return _status; }
            set { _status = value; }
        }

        public Int64 RefCEUserId
        {
            get { return _refceuserid; }
            set { _refceuserid = value; }
        }

        public DateTime CreatedDate
        {
            get { return _createddate; }
            set { _createddate = value; }
        }

        public DateTime ModifiedDate
        {
            get { return _modifieddate; }
            set { _modifieddate = value; }
        }

        public void ClearFileds()
        {
            _messageid = 0;
            _usertypeid = 0;
            _messagetype = "";
            _errorcode = "";
            _tittle = "";
            _header = "";
            _body = "";
            _footer = "";
            _status = false;
            _refceuserid = 0;
            _createddate = new DateTime(1900, 1, 1);
            _modifieddate = new DateTime(1900, 1, 1);

        }

    }
}